/*
*  Copyright 2019-2023 oyun
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/package com.oyun.modules.medicine.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.oyun.base.BaseEntity;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import java.sql.Timestamp;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
* @description /
* @author oyun
* @date 2024-05-07
**/
@Data
@TableName("therapeutic_manipulation")
public class TherapeuticManipulation extends BaseEntity implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "治疗技术名称")
    private String mnName;

    @ApiModelProperty(value = "mnNameCode")
    private String mnNameCode;

    @ApiModelProperty(value = "zhName")
    private String zhName;

    @ApiModelProperty(value = "蒙语解释")
    private String mnExplain;

    @ApiModelProperty(value = "zhExplain")
    private String zhExplain;

    @ApiModelProperty(value = "蒙语疗法")
    private String mnTherapy;

    @ApiModelProperty(value = "zhTherapy")
    private String zhTherapy;

    @ApiModelProperty(value = "mnTherapyCode")
    private String mnTherapyCode;

    @ApiModelProperty(value = "mnExplainCode")
    private String mnExplainCode;

    @ApiModelProperty(value = "蒙语注意事项")
    private String mnAttention;

    @ApiModelProperty(value = "mnAttentionCode")
    private String mnAttentionCode;

    @ApiModelProperty(value = "zhAttention")
    private String zhAttention;

    @ApiModelProperty(value = "蒙语效用")
    private String mnUtility;

    @ApiModelProperty(value = "zhUtility")
    private String zhUtility;

    @ApiModelProperty(value = "mnUtilityCode")
    private String mnUtilityCode;


    @ApiModelProperty(value = "status")
    private Integer status;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "分类(字典)")
    private String type;

    @TableField(exist = false)
    @ApiModelProperty(value = "适应疾病id")
    private List<Long> illnessIds;

    @TableField(exist = false)
    @ApiModelProperty(value = "禁忌疾病id")
    private List<Long> nillnessIds;

    public void copy(TherapeuticManipulation source){
        BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
    }
}
